#include "stdio.h"
#include "string.h"
//密码锁
int main()
{
   int i = 0;
    char nop[10]={ 0 };
    for (i = 0;i < 3; i++)
    {
    printf ("请输入密码\n");
scanf ("%s",nop);
      if(strcmp (nop,"123456") == 0) 
      {
printf ("输入正确");
      break;
      }
      else
      {
printf("请重新输入\n");
      }
    }
    if(i == 3)
printf ("输入错误，请退出");
    return 0;
}